﻿using System;
using System.Linq;
using System.Reflection;
using System.Windows;
using System.Windows.Forms;
using System.Windows.Interop;
using GalaSoft.MvvmLight.Messaging;
using MSSQL.DBSync.UI.Common.Messages;
using MessageBox = System.Windows.MessageBox;

namespace MSSQL.DBSync.UI.Components.MainWindow
{
    /// <summary>
    /// 主窗体
    /// </summary>
    public partial class MsgWindow : Window , IMsgWindow
    {
        public MsgWindow()
        {
            InitializeComponent();
            //this.Closing += MsgWindow_Closing;
        }

        //private void MsgWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        //{
        //    e.Cancel = true;
        //}

        private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            this.Hide();
        }

        public void Show(string msg)
        {
            this.msgbox.Text = msg;
            this.ShowDialog();
        }
    }
}
